package ink.wbc;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author wbc
 * @date 2021/9/14
 * @desc
 */
@EnableCaching
@ServletComponentScan
@EnableScheduling
@SpringBootApplication
public class RuleApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(RuleApplication.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(RuleApplication.class);
    }

}
